<template>
  <div @click="changeScreen">
    <svg-icon
      icon-class="fullscreen"
      style="color: #fff; width: 20px; height: 20px"
    />
  </div>
</template>

<script>
import ScreenFull from 'screenfull'

export default {
  name: 'ScreenFull',
  components: {},
  props: {},
  data() {
    return {}
  },
  computed: {},
  watch: {},
  created() { },
  mounted() { },
  methods: {
    changeScreen() {
      // document.documentElement.requestFullscreen()
      if (!ScreenFull.isEnabled) {
        return
      }
      ScreenFull.toggle()
    }
  }
}
</script>

<style></style>
